package a01;
/**
 * @author Sven Eric Panitz
 */
import java.awt.*;
import javax.swing.*;

public class FroggerOptionsBorder extends FroggerOptions {

	private static final long serialVersionUID = 1L;

	public FroggerOptionsBorder(JFrame frame, TrainFrogger frog) {
		super(frame, frog);
	}

	@Override
	public void setComponentsLayout() {
		super.getP().setLayout(new BorderLayout());
	}

	@Override
	public void addTheComponents() {
		JPanel pSpeed = new JPanel();
		pSpeed.add(getMaxSpeedLabel());
		pSpeed.add(getMaxSpeedValue());
		JPanel pSpace = new JPanel();
		pSpace.add(getMaxSpaceLabel());
		pSpace.add(getMaxSpaceValue());
		JPanel buttons = new JPanel();
		buttons.add(getCancelButton());
		buttons.add(getOkButton());

		super.getP().add(pSpeed, BorderLayout.NORTH);
		super.getP().add(buttons, BorderLayout.SOUTH);
		super.getP().add(pSpace, BorderLayout.CENTER);
	}
}
